package com.woniu.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * graduate
 * @author 
 */
public class Graduate implements Serializable {
    private Integer graduateId;

    private Integer studentId;

    private Date graduateTime;

    private Integer companyId;

    private static final long serialVersionUID = 1L;

    public Integer getGraduateId() {
        return graduateId;
    }

    public void setGraduateId(Integer graduateId) {
        this.graduateId = graduateId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public Date getGraduateTime() {
        return graduateTime;
    }

    public void setGraduateTime(Date graduateTime) {
        this.graduateTime = graduateTime;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Graduate other = (Graduate) that;
        return (this.getGraduateId() == null ? other.getGraduateId() == null : this.getGraduateId().equals(other.getGraduateId()))
            && (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
            && (this.getGraduateTime() == null ? other.getGraduateTime() == null : this.getGraduateTime().equals(other.getGraduateTime()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getGraduateId() == null) ? 0 : getGraduateId().hashCode());
        result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
        result = prime * result + ((getGraduateTime() == null) ? 0 : getGraduateTime().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", graduateId=").append(graduateId);
        sb.append(", studentId=").append(studentId);
        sb.append(", graduateTime=").append(graduateTime);
        sb.append(", companyId=").append(companyId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}